<%--
  Created by IntelliJ IDEA.
  User: limin
  Date: 2021/8/5
  Time: 16:59
  To change this template use File | Settings | File Templates.
--%>
<%@ page language="java" import="java.util.*" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML>
<html>
<head>
    <base href="<%=basePath%>">

    <title></title>

    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">


    <link rel="stylesheet" type="text/css" href="css/maintable.css">


</head>

<body>
<div class="div_title">
    <div class="div_titlename"><img src="images/san_jiao.gif"><span>角色列表</span></div>
    <div class="div_titleoper"><input type="checkbox">全选 <a href="#"><img src="images/add.gif">添加</a><a href="#"><img
            src="images/del.gif">删除</a><a href="#"><img src="images/edit.gif">编辑</a></div>
</div>
<table class="main_table">
    <tr>
        <th>角色名称</th>
        <th>角色描述</th>
        <th>操作</th>
    </tr>
    <c:forEach var="r" items="${roleList}">
        <tr>
            <td>${r.roleName}</td>
            <td>${r.des}</td>
            <td><a href="RoleServlet.do?flag=deleteRole&roleId=${r.id }">删除</a> <a href="perm/role_update.jsp?flag=update&roleId=${r.id }&roleName=${r.roleName}&des=${r.des}">修改</a> <a href="RoleServlet.do?flag=roleMenu&roleId=${r.id }">权限分配</a></td>
        </tr>
    </c:forEach>
</table>
${msg}
</body>
</html>
